﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestTCPClient
{
    class CallbackHandlerFactory : CPPEI.Net.TCP.ICallbackHandlerFactory
    {
        public CPPEI.Net.TCP.ICallbackHandler Create(byte scenario, byte command)
        {
            if (command == 0x02)
            {
                return new RequestHandler1();
            }
            return null;
        }
    }
}
